from pitchSrc.tools.cleanDecorator import CleanDecorator
from common.config import pitchConfig as Config
from pitchSrc.tools.loadFile import toCsv, toAttrCsv

import pandas as pd

# @CleanDecorator.drop_duplicates
@CleanDecorator.drop_bigorsmall
@CleanDecorator.drop_discretePoint
def hisCleanProcess(X):
    print('cleanProcess 进行中.............')
    return X


def cleanProcess():
    toCsv(Config.hisInitialData, Config.hisCleanProcess, hisCleanProcess)
    toAttrCsv(Config.hisCleanProcess, Config.hisCleanAttr)
    print('cleanProcess 完毕................')
    # show3dFig(Config.hisCleanProcess)
if __name__ == '__main__':
    cleanProcess()

